package com.lunan.gulimail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lunan.common.utils.PageUtils;
import com.lunan.gulimail.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lunan
 * @email TremBroLn@163.com
 * @date 2024-04-16 21:36:56
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有商品分类，并以树状结构返回
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 根据分类
     * @param categoryIds
     */
    void removeCategoryByIds(List<Long> categoryIds);
}

